package com.ml.mall.enums;

/**
 * Created by kyyang on 2021/1/6 18:55
 */
public enum RetStatusNum {

    SUCCESS("200","operate successfully"),
    PARAMS_ERROR("400","parameter error"),
    SYSTEM_ERROR("500","Unexpected circumstances, please try again later！"),
    SQLDUPLICATEKEY_ERROR("501","Data does not satisfy uniqueness！"),
    NO_PERMISSION("401","no access"),
    ACC_NO("900","Invalid Account"),
    ACC_REP("903","The user name already exists！"),
    ACC_OLD_PWD("904","Old password error！"),
    ACC_FREEZE("901","The user has been frozen"),
    ACC_DEL("909","Invalid Account"), //禁用
    ACC_ERROR("999","Invalid Email or Password"),
    CART_ERROR("9991","Product expired!"),
    CART_ERROR_CREDIT("9992","Credit Insufficient!"),
    NO_RESOURCE("404","The accessed resource does not exist！"),
    ORDER_CREAT_FAIL("905","Order creation failed！"),
    NO_STATE("906","The modification failed, please try again later"),
    NO_DEL("907","Order status deletion failed！"),
    NO_CREATE_ORDER("90009","The current user cannot create the order！"),
    NO_DEALER("908","Merchant does not exist"),
    USER_FOREGET_PWD_ERROR("9011","code or email is not match!"),
    REDIS_SET_ADD_ERROR("9001","Redis order insert failed！"),
    SUPPLIER_ORDER_ERROR("9006","The order created！"),
    INDEX_CHANGE("9002","The order is not paid, please first set to pay status"),
    UNSAFE_CHANGE("9003","For the sake of system security, system not allowed to change across levels"),
    REVERSE_CHANGE("9004","Reverse change state is not allowed"),
    ERR_CAPTCHA_CODE("9005","captcha code err!"),

    WITHDRAW_BANK_OUTLIMIT("1010","222！");


    private String code;

    private String message;

     RetStatusNum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
